<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page language="java" import="com.xteam.ecsystem.utils.AppConfig"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

//获取等级图标路径
String gradeIconPath = AppConfig.getGradeImagePath();
//获取图片实际根目录
String realpath = AppConfig.getRealPath();
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>积分管理-等级规则</title>
    <jsp:include page="../../include/base.jsp"></jsp:include>
	<jsp:include page="../../include/common.jsp"></jsp:include>
	
	<script type="text/javascript">
			var __gradeIconPath = "<%=gradeIconPath %>";
			var __realpath = '<%=realpath%>';
	</script>
  </head>
  <body style="margin:0 auto;padding:0">   
  	<form id="gradeRuleForm" method="post">
		<table style="width:100%;font-size:12px;padding-top:14px;" border="0" align="center" cellpadding="3">
			<tr>
				<td align="right" width="90">等级序列：</td>
				<td>    
                     <input id="bgrId" name="bgrId" class="mini-textbox" required="true" readOnly="true" width="132"/>
                </td>
                <td>等级名称：</td>
				<td>    
                     <input name="bgrName" class="mini-textbox" required="true" width="132" style="margin-right:23px;"/>
                </td>
			</tr>
			<tr>
				<td align="right">等级图标：</td>
				<td colspan="3">    
                     <input class="mini-textbox" id="upload_bgrIcon" name="bgrIcon" width="311"
                     	style="float:left;"/>
					  <span id="bgrUpload"></span>
                 </td>
			</tr>
			<tr>
                 <td align="right">图标预览：</td>
				 <td colspan="3">    
                    <div id="imgViewer" style="border:1px dashed #9DA0AA;width:354px;height:40px;"></div>
                 </td>
			</tr>
			<tr>
				<td align="right">升级规则：</td>
				<td colspan="3">    
                     <input name="bgrUprule" class="mini-textarea" required="true" onvalidation="validBgrUpRule" width="356" height="60" />
                     <input id="bgrUprulesql" name="bgrUprulesql" class="mini-textarea" style="display:none;"/>
                     <table style="float:right;margin-right:4px;">
                     	<tr>
                     		<td><a title="升级规则添加说明" href="javascript:bgrUpRuleHelp();" class="icon-help">&nbsp;&nbsp;&nbsp;&nbsp;</a></td>
                     	</tr>
                     	<tr><td><a title="升级规则SQL" href="javascript:bgrUpRuleSql();" class="icon-btn-sun">&nbsp;&nbsp;&nbsp;&nbsp;</a></td></tr>
                     </table>
                 </td>
			</tr>
			<tr>
				<td align="right">降级规则：</td>
				<td colspan="3">    
                     <input name="bgrDownrule" class="mini-textarea" required="true" onvalidation="validBgrDownRule" width="356" height="60" />
                     <input id="bgrDownrulesql" name="bgrDownrulesql" class="mini-textarea" style="display:none;"/>
      				 <table style="float:right;margin-right:4px;">
                     	<tr>
                     		<td><a title="降级规则添加说明" href="javascript:bgrDownRuleHelp();" class="icon-help">&nbsp;&nbsp;&nbsp;&nbsp;</a></td>
                     	</tr>
                     	<tr><td><a title="降级规则SQL" href="javascript:bgrDwonRuleSql();" class="icon-btn-sun">&nbsp;&nbsp;&nbsp;&nbsp;</a></td></tr>
                     </table>
                 </td>
			</tr>
			<tr>
				<td align="right">规则状态：</td>
				<td colspan="3">    
                     <div id="bgrState" name="bgrState" class="mini-radiobuttonlist" 
		    		 	repeatItems="2" repeatLayout="table" repeatDirection="horizontal"  
		    		 	textField="text" valueField="value">
					</div> 
                 </td>
			</tr>
			<tr>
				<td colspan="4" align="center" style="height:50px;">
					<input class="mini-button" text="保存" iconCls="icon-save" plain="false" 
      					onclick="GradeRuleFormHandler.save"/>&nbsp;&nbsp;
      				<input class="mini-button" text="关闭" iconCls="icon-cancel" plain="false" 
      					onclick="GradeRuleFormHandler.closeMiniWin"/>
				</td>
			</tr>
		</table>
  	</form>
  </body>
  <script src="handler/GradeRuleFormHandler.js" type="text/javascript"></script> 
</html>
























